<?php
/*
 * Created by PhpStorm
 * User: moquan
 * Date: 2021/11/6
 * Time: 16:41
 */

namespace app\admin\controller;


use think\Controller;

class Base extends Controller
{
    /**
     * 布局模板
     * @var string
     */
    protected $layout = 'default';

    protected function initialize(){
        // 如果有使用模板布局
        if ($this->layout) {
            $this->view->engine->layout('layout/' . $this->layout);
        }
    }
}
